<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2024/8/12 0012
 * Time: 19:02
 */

namespace ShipSun\WechatMini\Requests;

/**
 * Class UserPhoneNumberRequest
 * @package ShipSun\WechatMini\Requests
 */
class UserPhoneNumberRequest implements RequestInterface
{
    /**
     * @var string
     */
    public $code;
    /**
     * @var string
     */
    public $openid;

    /**
     * @return string
     */
    public function getUrl()
    {
        return 'https://api.weixin.qq.com/wxa/business/getuserphonenumber';
    }

    /**
     * @return string
     */
    public function getMethod()
    {
        return 'POST';
    }

    /**
     * @return bool
     */
    public function isAccessToken()
    {
        return true;
    }
}
